Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GCP native fencing #271

Merged
merged 1 commit into from
Sep 6, 2024
Merged

Enable GCP native fencing #271

merged 1 commit into from
Sep 6, 2024

Conversation

BillAnastasiadis
Copy link
Collaborator

@BillAnastasiadis BillAnastasiadis commented Sep 5, 2024

This PR enables GCP native fencing, by passing the required variables from terraform to ansible and adding the gcp-specific stonith commands for ansible.

Verification Run

GCP

Native fencing

SBD

GCP SBD: http://openqaworker15.qa.suse.cz/tests/296342

AWS

AWS Native: http://openqaworker15.qa.suse.cz/tests/296341

AZURE

AZURE MSI: http://openqaworker15.qa.suse.cz/tests/296343

@BillAnastasiadis BillAnastasiadis changed the title WIP: Enable GCP native fencing Enable GCP native fencing Sep 6, 2024
Copy link
Collaborator

@alvarocarvajald alvarocarvajald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -233,6 +233,14 @@
params tag={{ aws_stonith_tag}} pcmk_delay_max=15
when: cloud_platform_is_aws

- name: Set primary and secondary hostnames
ansible.builtin.set_fact:
primary_hostname: "{{ groups['hana'][0] }}"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use similar query to calculate is_primary. Differences are:

  • all of them calculate it ad playbook level and not at task level
  • other places are using group.hana[0]
  • other places are using a combination like:
hosts: hana
vars:
        is_primary: "{{ ansible_play_hosts[0] == inventory_hostname }}"

Let's keep it like this here but revisit it everywhere in all files.

@@ -4,6 +4,9 @@ all:
use_sbd: ${use_sbd}
gcp_cluster_ip: ${hana-vip}
prefix: ${name_prefix}
project: ${gcp_project}
primary_zone: ${gcp_primary_zone}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the other comment, we can think about moving them to hosts>>hana section of the playbook

Copy link
Collaborator

@mpagot mpagot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@lilyeyes lilyeyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM.

@mpagot mpagot merged commit 9f4aa9c into SUSE:main Sep 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants